[PB-4945]: feat/command to sync users with tiers in drive#310
[PB-4945]: feat/command to sync users with tiers in drive#310
Conversation
…-to-sync-users-and-ther-drive-tiers
| $project: { | ||
| _id: 0, | ||
| userUuid: '$user.uuid', | ||
| foreignTierId: '$tier.foreignTierId', |
There was a problem hiding this comment.
How is this working if foreignTierId is inside tier.drive field?
There was a problem hiding this comment.
Indeed. It should be tier.featuresPerService.drive.foreignTierId. Nice catch! 🚀
|
❌ This pull request has been automatically closed due to prolonged inactivity. |
|
|
| customHeaders?: Record<string, string>; | ||
| }): Promise<void> { | ||
| const jwt = signToken('5m', this.config.DRIVE_NEW_GATEWAY_SECRET); | ||
| let totalMaxSpaceBytes: number | undefined = undefined; |
There was a problem hiding this comment.
Shouldn't this be:
let totalMaxSpaceBytes = maxSpaceBytes;
?
There was a problem hiding this comment.
The space can be undefined because we can update the customer only by using the tierId.
|
It will be automatically closed in 7 days if no further updates are made. |


This PR implements a new command in the CLI folder to be able to sync the user with their tier in Drive.
By passing the business parameter, it will be sync the business subscriptions. By default it syncs the Individual ones (subscription/lifetime).
X_INTERNXT_PAYMENTS_HEADER